﻿using System;
using fastCSharp;
using fastCSharp.code.cSharp;

namespace diantou.web.enterprise
{
    /// <summary>
    /// 用户考试编程题日志回放
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPool = true, IsPage = false)]
    partial class examJudgeLog : report<examJudgeLog>
    {
        /// <summary>
        /// 
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.examDataAccess.examProblem problem;
        /// <summary>
        /// 
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.examLogServer.examJudgeLog[] logs;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        private bool loadView(int userId, int problemId)
        {
            if (base.loadView(userId))
            {
                if (diantou.examDataAccess.tcpCall.examProblem.isExamUser(userId, problemId))
                {
                    problem = diantou.examDataAccess.clientCache.ExamProblem[problemId];
                    logs = diantou.examLogServer.tcpCall.examJudgeLog.get(userId, problemId);
                    return true;
                }
            }
            return false;
        }
    }
}